package top.z.orm.handle.osql.core;

public class CoreConfig {
    //启用缓存
    private static Boolean ENABLE_CACHE    = true;
    //输出SQL
    private static Boolean ENABLE_SHOW_SQL = true;
    //日志文件路径
    private static String  LOG_DATE_FORMAT = "yyyy-MM-dd HH.mm.ss.SS";
    //日志文件路径
    private static String  LOG_FILE_PATH   = "";
    //是否打印SQL当前执行时间
    private static Boolean PRINT_SQL_DATE  = false;
    //打印SQL显示日志等级
    private static Boolean PRINT_SQL_LEVEL = false;

    public static Boolean getEnableCache() {
        return ENABLE_CACHE;
    }

    public static void setEnableCache(Boolean enableCache) {
        ENABLE_CACHE = enableCache;
    }

    public static Boolean getEnableShowSql() {
        return ENABLE_SHOW_SQL;
    }

    public static void setEnableShowSql(Boolean enableShowSql) {
        ENABLE_SHOW_SQL = enableShowSql;
    }

    public static String getLogDateFormat() {
        return LOG_DATE_FORMAT;
    }

    public static void setLogDateFormat(String logDateFormat) {
        LOG_DATE_FORMAT = logDateFormat;
    }

    public static String getLogFilePath() {
        return LOG_FILE_PATH;
    }

    public static void setLogFilePath(String logFilePath) {
        LOG_FILE_PATH = logFilePath;
    }

    public static Boolean getPrintSqlDate() {
        return PRINT_SQL_DATE;
    }

    public static void setPrintSqlDate(Boolean printSqlDate) {
        PRINT_SQL_DATE = printSqlDate;
    }

    public static Boolean getPrintSqlLevel() {
        return PRINT_SQL_LEVEL;
    }

    public static void setPrintSqlLevel(Boolean printSqlLevel) {
        PRINT_SQL_LEVEL = printSqlLevel;
    }
}